package com.hd.service.impl;

import com.hd.mapper.IllnessMapper;
import com.hd.pojo.Illness;
import com.hd.service.IllnessService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by 1 on 2017/11/27.
 */
@Service("/illnessService")
@Transactional
public class IllnessServiceImpl implements IllnessService{

    @Resource
    private IllnessMapper illnessMapper;


    @Override
    public Integer addIllness(Illness illness) {
        return illnessMapper.add(illness);
    }
}
